﻿using A.M.ETO;
using A.M.Storage.I_Application;
using L.M.System.Domain.DTO;
using L.M.System.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.M.System.Application.IServices
{
    public interface IEmployee_role_tableServices: IBaseServices<employee_role_table,string>
    {
        /// <summary>
        /// 清空用户的角色
        /// </summary>
        /// <param name="eId">用户编号</param>
        /// <returns>清空用户的角色</returns>
        Task<ApiReturn<string>> DelEmpInfor(string? eId);

        /// <summary>
        /// 批量清空
        /// </summary>
        /// <param name="empinfor_RoleDTOs"></param>
        /// <returns>批量清空</returns>
        Task<ApiReturn<string>> DelInforAll(List<Empinfor_roleDTO> empinfor_RoleDTOs);

        /// <summary>
        /// 获取该角色下所有的用户编号
        /// </summary>
        /// <returns>获取该角色下所有的用户编号</returns>
        Task<ApiReturn<string>> GetEnumInfor(string? rId);

        /// <summary>
        /// 获取该角色下所有的用户名称
        /// </summary>
        /// <returns>获取该角色下所有的用户编号</returns>
        Task<ApiReturn<string>> GetEnumInforName(string? rId);

        /// <summary>
        /// 删除用户信息 并删除关联表
        /// </summary>
        /// <param name="sId">编号</param>
        /// <returns>统一返回格式</returns>

        Task<ApiReturn<string>> StaffDelInfor(string? sId);
    }
}
